{% extends "base.html" %}

{% block content %}
  <h2>编辑报表</h2>
  <div class="pageContent">
  <form action="{{full_path}}" method="post"/>
  
      {% csrf_token %}
      {{ form.as_p }}
      {% if "/schedule/delete" in full_path%}
      <input type="submit" id="id_is_delete" name="is_delete" value="删除"/>
      {%endif%}
      {% if "/schedule/commit" in full_path%}
      <input type="submit" id="id_is_commit" name="is_commit" value="提交"/>
      {%else%}
      <input type="submit" id="id_ok" name="ok" value="确定"/>
      {%endif%}
  
  </form>
</div>
{% endblock %}